/**
 * GL Laser 导航栏样式
 */

/* === GL Laser 导航栏样式 === */
.gl-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(0.75rem);
  -webkit-backdrop-filter: blur(0.75rem);
  box-shadow: 0 0.125rem 1rem rgba(0, 0, 0, 0.08);
  z-index: 1000;
  padding: 0 5%;
}

.gl-nav-container {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.gl-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #0066CC;
}

.gl-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #0066CC, #0055AA);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.gl-logo-text {
  font-size: 1.375rem;
  font-weight: 700;
  color: #0066CC;
  letter-spacing: -0.03rem;
}

.gl-logo:hover .gl-logo-text {
  color: #0055AA;
}

/* 主导航菜单 */
.gl-nav-menu {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gl-nav-menu li a {
  text-decoration: none;
  color: #1A202C;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.25s ease;
  padding: 0.25rem 0;
  display: block;
  position: relative;
}

.gl-nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: -0.125rem;
  left: 0;
  width: 0;
  height: 0.125rem;
  background: #0066CC;
  border-radius: 0.125rem;
  transition: width 0.25s ease;
}

.gl-nav-menu li a:hover {
  color: #0066CC;
}

.gl-nav-menu li a:hover::after,
.gl-nav-menu li a.active::after {
  width: 100%;
}

.gl-nav-menu li a.active {
  color: #0066CC;
}

/* 右侧操作区 */
.gl-nav-actions {
  margin-left: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.gl-phone {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: #FF6B35;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.gl-phone:hover {
  color: #E55A2B;
}

.gl-btn {
  padding: 0.5625rem 1.375rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.gl-btn-primary {
  background: #FF6B35;
  color: white;
}

.gl-btn-primary:hover {
  background: #E55A2B;
  color: white;
  transform: translateY(-0.0625rem);
  box-shadow: 0 0.25rem 0.75rem rgba(255, 107, 53, 0.35);
}

.gl-btn-outline {
  background: transparent;
  color: #0066CC;
  border: 0.125rem solid #0066CC;
  padding: 0.4375rem 1.25rem;
}

.gl-btn-outline:hover {
  background: #0066CC;
  color: white;
}

.gl-btn-light {
  background: transparent;
  color: #1A202C;
  border: 0.0625rem solid #E2E8F0;
  padding: 0.5625rem 1rem;
}

.gl-btn-light:hover {
  background: #F7FAFC;
  color: #1A202C;
}

/* 移动端汉堡菜单 */
.gl-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #1A202C;
}

.gl-mobile-toggle svg {
  display: block;
}

/* 移动端菜单 */
.gl-mobile-menu {
  display: none;
  position: fixed;
  top: 4.375rem;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
  padding: 1rem 1.5rem 1.5rem;
  z-index: 999;
}

.gl-mobile-menu.open {
  display: block;
}

.gl-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}

.gl-mobile-menu li {
  border-bottom: 0.0625rem solid #F0F0F0;
}

.gl-mobile-menu li:last-child {
  border-bottom: none;
}

.gl-mobile-menu li a {
  display: block;
  padding: 0.875rem 0;
  color: #1A202C;
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-word;
}

.gl-mobile-menu li a:hover,
.gl-mobile-menu li a.active {
  color: #0066CC;
}

.gl-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 0.0625rem solid #E2E8F0;
}

/* 搜索按钮 */
.gl-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: transparent;
  color: #1A202C;
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.gl-search-btn:hover {
  background: #F0F4F8;
  color: #0066CC;
}

/* 页面主体避开固定导航栏 */
.gl-page-body {
  padding-top: 5rem;
}

/* 响应式 - PC端默认显示 */
@media (max-width: 48rem) {
  .gl-nav-menu {
    display: none !important;
  }

  .gl-mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .gl-navbar {
    padding: 0 1.25rem;
  }

  .gl-phone {
    display: none !important;
  }

  .gl-nav-actions .gl-btn-primary {
    padding: 0.3125rem 0.625rem !important;
    font-size: 0.75rem !important;
  }

  .gl-search-btn {
    display: flex !important;
  }

  .gl-logo-text {
    white-space: nowrap;
    font-size: 1rem;
  }

  .gl-logo {
    flex: 1;
    min-width: 0;
  }

  .gl-nav-actions {
    flex-shrink: 0;
    gap: 0.5rem !important;
    margin-left: 0.5rem !important;
  }
}

@media (max-width: 40rem) {
  .gl-page-body {
    padding-top: 3.75rem;
  }

  .gl-phone span:last-child {
    display: none;
  }

  .gl-logo-text {
    font-size: 1.25rem;
  }

  .gl-nav-container {
    height: 3.75rem;
  }

  .gl-mobile-menu {
    top: 3.75rem;
  }
}
